(function($, undefined) {
	$.fn.activityExtension = function(options) {
		var settings = {};
		if (options) {
			$.extend(settings, options);
		}
		var obj = this;
		var fid = 0;
		$("a.activity_extension").click(function() {
			fid = $(this).attr("fid");
			$.getJSON(setting.url + "/activityExtension/id/" + fid , function(data) {
				if (data.status == 1) {
					$("#task").html("");
					createBox(data.data);
				}else{
					alert(data.data);
				}
			});
		});
	};
}(jQuery));